<html>
<head><title>CGI programming with TJWS</title>

</head>
<body bgcolor="#D1E9FE">

<p>An example of Python CGI</p>
<pre>
#!/usr/bin/env python
print "Content-type:text/html\r\n\r\n"
print '&lt;html&gt;'
print '<head>'
print '<title>Hello Word - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello Word! This is my first CGI program</h2>'
import cgi,cgitb
cgitb.enable() #for debugging
form = cgi.FieldStorage()
name = form.getvalue('fname')
print 'Name of the user is:', name
print '</body>'
print '</html>'
</pre>
</body>
</html>